//
// Created by tang on 2022/1/12.
//

#ifndef DIARYTOOL_DIARY_EDITOR_VIEW_HPP
#define DIARYTOOL_DIARY_EDITOR_VIEW_HPP

#include "gui/ui_component.hpp"

struct EditorData;
class DiaryEditorView final : public UiComponent {
    EditorData* data;
public:
    DiaryEditorView();
    ~DiaryEditorView();

    [[nodiscard]] unsigned int Flags() const override;

    void RenderContent(ComponentFlag flag) override;

    const char* GetName(ComponentFlag flag) override;

private:
    void Tab() const;
};

#endif //DIARYTOOL_DIARY_EDITOR_VIEW_HPP
